<%-- 
    Document   : admin
    Created on : Apr 11, 2011, 10:06:17 PM
    Author     : cas
--%>

<%@page import="admin.admin"%>
<%@page import="tools.dbconnector"%>
<%@page import="tools.writer" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin Page</title>
        <link rel="stylesheet" href="css/admin.css"/>
        <script type="text/javascript" src="script/admin.js"></script>
    </head>
    <body>
        <div id="admin_wrapper">
            <div id="wrapper">
                <div id="admin_title">Admin Page</div>
                <div class="submenu">
                    <div class="title">List Users</div>
                    <div id="title_nama">Name</div>
                    <div id="title_email">Email</div>
                    <div id="title_maxroom">Max Room</div>
                    <div id="title_ban">Ban Status</div>
                    <div class="tambahan"></div>
                    <div class="clear"></div>
                    <%
                        String username = (String) session.getAttribute("username");
                        dbconnector db = new dbconnector();

                        admin adm = new admin(username);
                        adm.printAllUsers(out);
                    %>
                </div>
                <div class="submenu">
                    <div class="title">List Categories</div>
                    <div id="title_kat">Name</div>
                    <div id="title_mod">Moderator</div>
                    <div class="tambahan"></div>
                    <div class="tambahan"></div>
                    <div class="clear"></div>
                    <%
                        adm.printAllKategori(out);
                    %>
                    
                </div>
                <div class="submenu">
                    <div class="title">Add Category</div>
                    <div id="title_add">
                        <div id="addkat_title">Name</div>
                        <div id="addparent_title">Parent Categories</div>
                        <div id="addmod_title">Moderator</div>
                    </div>
                    <div id="kat_add">
                        <%
                            adm.PrintAddKategori(out);
                        %>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </body>
</html>
